package com.clothes.mdoel;

import java.io.Serializable;
import java.util.List;

/**
 * Created by llf on 2018/4/1.
 * T 代表要传的对象，json 类型 {msg:"",code:0,data{}}
 */

public class ServerInfo<T> implements Serializable {
    private String message; //提示信息
    private int code; // 提示码 0成功 其他错误
    private T data; // 返回的数据

    public String getMessage() {
        return message == null?"":message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
